package com.yunxi.service.localService.sys;

import com.yunxi.core.service.IServicePlus;
import com.yunxi.model.sys.Menu;
import com.yunxi.model.sys.RoleMenu;
import com.yunxi.sys.pojo.RoleMenuVO;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * Created by xuruzi on 2017/5/3.
 */
public interface RoleMenuService extends IServicePlus<RoleMenu> {
    @Transactional(timeout = 5000,readOnly = true)
    List selectRoleMenuByRoleId(String roleId);

    Object findRoleMenuList(String roleId) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;

    @Transactional(timeout = 5000,readOnly = true)
    List selectMenuIdByRoleId(Map map);

    void saveRoleMenuList(RoleMenuVO roleMenu, String userId);

    List listByUserId(String userId);

    List listByRoleCode(String roleCode);
}
